package com.koo.modules.sale.entity;

import com.alibaba.excel.annotation.ExcelIgnore;
import com.alibaba.excel.annotation.ExcelProperty;
import com.alibaba.excel.annotation.write.style.ColumnWidth;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.koo.common.base.entity.CommonEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;
import java.util.List;

/**
 * @author charlin
 * @email 136137465@qq.com
 * @date 2023-03-16 16:57:09
 */
@Data
@ApiModel("调价单")
@TableName("sale_adjust_price")
public class SaleAdjustPriceEntity extends CommonEntity {
    private static final long serialVersionUID = 1L;

    @ExcelIgnore
    @TableId
    private Long adjustPriceId;

    @ColumnWidth(11)
    @ExcelProperty("调价单编号")
    @ApiModelProperty(value = "调价单编号")
    private String adjustPriceNo;

    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    @ColumnWidth(11)
    @ExcelProperty("调价日期")
    @ApiModelProperty(value = "调价日期")
    private Date adjustPriceDate;

    @ColumnWidth(11)
    @ExcelProperty("调价人id")
    @ApiModelProperty(value = "调价人id")
    private Long adjustUserId;

    @ColumnWidth(11)
    @ExcelProperty("调价人")
    @ApiModelProperty(value = "调价人")
    private String adjustUser;

    @ColumnWidth(11)
    @ExcelProperty("审核人id")
    @ApiModelProperty(value = "审核人id")
    private Long auditUserId;

    @ColumnWidth(11)
    @ExcelProperty("审核人")
    @ApiModelProperty(value = "审核人")
    private String auditUser;

    @ColumnWidth(11)
    @ExcelProperty("审核状态")
    @ApiModelProperty(value = "审核状态")
    private Integer auditStatus;

    @ColumnWidth(11)
    @ExcelProperty("审核说明")
    @ApiModelProperty(value = "审核说明")
    private String auditNote;


    @TableField(exist = false)
    private List<SaleAdjustPriceDetailEntity> itemList;

}
